From: Jonh Wendell Date: Mon, 13 Jan 2014 17:43:01 +0000 (-0200) Subject: switcherPopup: Always show the arrows if the popup is scrollable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2931 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d1c4e6063603998fc330cd977fd64017f3e35f62;p=gnome-shell.git switcherPopup: Always show the arrows if the popup is scrollable Currently we only show/hide the left and right arrows when we reach the initial/end position. This patch changes this behaviour by showing the arrows whenever is a scroll is possible. https://bugzilla.gnome.org/show_bug.cgi?id=711467 --- diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 3538825e9..3b1532f33 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -452,10 +452,9 @@ const SwitcherList = new Lang.Class({ time: POPUP_SCROLL_TIME, transition: 'easeOutQuad', onComplete: Lang.bind(this, function () { - if (this._highlighted == 0) { + if (this._highlighted == 0) this._scrollableLeft = false; - this.actor.queue_relayout(); - } + this.actor.queue_relayout(); }) }); }, @@ -477,10 +476,9 @@ const SwitcherList = new Lang.Class({ time: POPUP_SCROLL_TIME, transition: 'easeOutQuad', onComplete: Lang.bind(this, function () { - if (this._highlighted == this._items.length - 1) { + if (this._highlighted == this._items.length - 1) this._scrollableRight = false; - this.actor.queue_relayout(); - } + this.actor.queue_relayout(); }) }); },